﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PlayListSet.Entity
{
    public delegate void ExecuteEvent(object parameter);
    public class UserCommand : System.Windows.Input.ICommand
    {
        public event EventHandler CanExecuteChanged;
        public event ExecuteEvent ExecuteEvent;
        public bool CanExecute(object parameter)
        {
           return true;
        }

        public void Execute(object parameter)
        {
            ExecuteEvent?.Invoke(parameter);
        }
    }
}
